/*
 * @Author: szx
 * @Date: 2022-06-08 11:14:11
 * @LastEditTime: 2022-06-08 11:41:44
 * @Description:
 * @FilePath: \leetcode\面试题\16\11\11.js
 */
/**
 * @param {number} shorter
 * @param {number} longer
 * @param {number} k
 * @return {number[]}
 */
var divingBoard = function (shorter, longer, k) {
    if (k == 0) return [];
    if (shorter === longer) return [shorter * k];
    return new Array(k + 1).fill(0).map((_, i) => (longer - shorter) * i + shorter * k);
};
